﻿Imports Control_Vuelos_BE
Imports Control_Vuelos_ADO

Public Class V_ReservaBL
    ReadOnly _ReservaADO As New V_ReservaADO()

    Public Function pr_BuscarReserva(ByVal sPas As String, ByVal sRes As String, ByVal dFch As Date) As String
        Return _ReservaADO.pr_BuscarReserva(sPas, sRes, dFch)
    End Function

    Public Function pr_CargarLugarIngreso(ByVal sUsuario As String) As String
        Return _ReservaADO.pr_CargarLugarIngreso(sUsuario)
    End Function

    Public Function pr_CargarPrioridad(ByVal sTipo As String) As String
        Return _ReservaADO.pr_CargarPrioridad(sTipo)
    End Function

    Public Function pr_Cargar_ReservaPendiente(ByVal sGpoReserva As String, ByVal sEstReserva As String, ByVal sLugReserva As String) As DataTable
        Return _ReservaADO.pr_Cargar_ReservaPendiente(sGpoReserva, sEstReserva, sLugReserva)
    End Function

    Public Function pr_CrearReserva(ByVal rBE As V_ReservaBE) As Boolean
        Return _ReservaADO.pr_CrearReserva(rBE)
    End Function

    Public Function pr_EliminarReserva(ByVal sCodr As Integer) As Boolean
        Return _ReservaADO.pr_EliminarReserva(sCodr)
    End Function

    Public Function pr_GetReserva() As DataTable
        Return _ReservaADO.pr_getReserva()
    End Function

    Public Function pr_Listar_Reserva(ByVal sUsuario As String, ByVal sFiltro As String) As DataTable
        Return _ReservaADO.pr_Listar_Reserva(sUsuario, sFiltro)
    End Function

    Public Function pr_ListarReservasBuscar() As DataTable
        Return _ReservaADO.pr_ListarReservasBuscar()
    End Function

    Public Function pr_ModificarReserva(ByVal rBE As V_ReservaBE) As Boolean
        Return _ReservaADO.pr_ModificarReserva(rBE)
    End Function

    Public Function pr_RecuperarReservaPorDNI(ByVal sDnir As String, ByVal sFchViaje As String) As Integer
        Return _ReservaADO.pr_RecuperarReservaPorDNI(sDnir, sFchViaje)
    End Function

    Public Function pr_TraerReserva(ByVal sCodr As Integer) As V_ReservaBE
        Return _ReservaADO.pr_TraerReserva(sCodr)
    End Function

End Class
